package aoj.no_0000;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No_0008 {
	public static void main(String[] args) throws IOException {
		InputStreamReader input = new InputStreamReader(System.in);
		BufferedReader reader = new BufferedReader(input);
		
		String line = reader.readLine();
		while(line != null) {
			int ans = 0;
			int n = Integer.parseInt(line);
			for(int i = 0; i < 10; i++) {
				for(int j = 0; j < 10; j++) {
					for(int k = 0; k < 10; k++) {
						for(int m = 0; m < 10; m++) {
							if(i+j+k+m == n)
								ans++;
						}
					}
				}	
			}
			System.out.println(ans);
			line = reader.readLine();
		}
	}
}
